<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>修改界面</title>
    <link href="http://libs.baidu.com/bootstrap/3.0.3/css/bootstrap.min.css" rel="stylesheet"/>
</head>
<body>
<div style="width:800px;height:100%;margin-left:270px;">
<!--  设置时间格式  #dates.format(patients.birthdate, 'yyyy-MM-dd')-->
    <form action="/patient/update" method="post">
        id：<input class="form-control" type="text" th:value="${patient.id}" name="id" readonly="readonly"><br>
        用户id：<input class="form-control" type="text" th:value="${patient.userid}" name="userid"><br>
        姓名：<input class="form-control" type="text" th:value="${patient.name}" name="name"><br>
        证件类型：<input class="form-control" type="text" th:value="${patient.certificatesType}" name="certificatesType"><br>
        证件编号：<input class="form-control" type="text" th:value="${patient.certificatesNo}" name="certificatesNo"><br>
<!--        性别：<input class="form-control" type="text" th:value="${patient.sex}" name="sex"><br>-->
        性别：<input id="male" name="sex" type="radio" value="1" th:checked="${patient.sex==1}"/>
            <label for="male">男</label>
            <input id="female" name="sex" type="radio" value="0" th:checked="${patient.sex==0}"/>
            <label for="female">女</label><br><br>
<!--        出生年月：<input class="form-control" type="date" th:value="${patient.birthdate}" name="birthdate"><br>-->
        出生年月：<input class="form-control" type="date" th:value="${#dates.format(patient.birthdate, 'yyyy-MM-dd')}" name="birthdate"><br>
        手机：<input class="form-control" type="text" th:value="${patient.phone}" name="phone"><br>
<!--        是否结婚：<input class="form-control" type="text" th:value="${patient.isMarry}" name="isMarry"><br>-->
        是否结婚：<input id="noMarry" name="isMarry" type="radio" value="0" th:checked="${patient.isMarry==0}"/>
                <label for="noMarry">未婚</label>
                <input id="marry" name="isMarry" type="radio" value="1" th:checked="${patient.isMarry==1}"/>
                <label for="marry">已婚</label><br><br>
        省code：<input class="form-control" type="text" th:value="${patient.provinceCode}" name="provinceCode"><br>
        市code：<input class="form-control" type="text" th:value="${patient.cityCode}" name="cityCode"><br>
        区code：<input class="form-control" type="text" th:value="${patient.districtCode}" name="districtCode"><br>
        详情地址：<input class="form-control" type="text" th:value="${patient.address}" name="address"><br>
        联系人姓名：<input class="form-control" type="text" th:value="${patient.contactsName}" name="contactsName"><br>
        联系人证件类型：<input class="form-control" type="text" th:value="${patient.contactsCertificatesType}"
                              name="contactCertificatesType"><br>
        联系人证件号：<input class="form-control" type="text" th:value="${patient.contactsCertificatesNo}"
                            name="contactCertificatesNo"><br>
        联系人手机：<input class="form-control" type="text" th:value="${patient.contactsPhone}" name="contactPhone"><br>
        就诊卡号：<input class="form-control" type="text" th:value="${patient.cardNo}" name="medicalCardNo"><br>
<!--        是否有医保：<input class="form-control" type="text" th:value="${patient.isInsure}" name="isMedicalCard"><br>-->
        是否有医保：<input id="noInsure" name="isInsure" type="radio" value="0" th:checked="${patient.isInsure==0}"/>
                <label for="noInsure">否</label>
                <input id="insure" name="isInsure" type="radio" value="1" th:checked="${patient.isInsure==1}"/>
                <label for="insure">是</label><br><br>
        状态（0：默认 1：已认证）：<input class="form-control" type="text" th:value="${patient.status}" name="status"><br>
<!--        创建时间：<input class="form-control" type="text" th:value="${patient.createTime}" readonly="readonly"><br>-->
<!--        更新时间：<input class="form-control" type="text" th:value="${patient.updateTime}" readonly="readonly"><br>-->
        创建时间：<input class="form-control" type="text" th:value="${#dates.format(patient.createTime, 'yyyy-MM-dd HH:mm:ss')}" readonly="readonly"><br>
        更新时间：<input class="form-control" type="text" th:value="${#dates.format(patient.updateTime, 'yyyy-MM-dd HH:mm:ss')}" readonly="readonly"><br>
        逻辑删除(1:已删除，0:未删除)：<input class="form-control" type="text" th:value="${patient.isDeleted}" name="isDeleted"><br>
        <button class="btn btn-primary btn-lg btn-block">保存</button>
    </form>
</div>
</body>
</html>